import akshare as ak

stock_individual_fund_flow_df = ak.stock_individual_fund_flow(stock="600611",market="sh")
stock_individual_fund_flow_dict=stock_individual_fund_flow_df.to_dict()


zijinliuxiang={}
# 获取最近四天资金流入情况
# 日期
zijinliuxiang['日期']=[stock_individual_fund_flow_dict["日期"][115],
                      stock_individual_fund_flow_dict["日期"][116],
                      stock_individual_fund_flow_dict["日期"][117],
                      stock_individual_fund_flow_dict["日期"][118],
                      stock_individual_fund_flow_dict["日期"][119],
                       ]
# 主力
# 主力净流入-净额
zijinliuxiang['主力净流入-净额']=[
                              stock_individual_fund_flow_dict["主力净流入-净额"][115],
                               stock_individual_fund_flow_dict["主力净流入-净额"][116],
                               stock_individual_fund_flow_dict["主力净流入-净额"][117],
                               stock_individual_fund_flow_dict["主力净流入-净额"][118],
                               stock_individual_fund_flow_dict["主力净流入-净额"][119],
                             ]
# 主力净流入-净占比
zijinliuxiang['主力净流入-净占比']=[
                                 stock_individual_fund_flow_dict["主力净流入-净占比"][115],
                                 stock_individual_fund_flow_dict["主力净流入-净占比"][116],
                                 stock_individual_fund_flow_dict["主力净流入-净占比"][117],
                                 stock_individual_fund_flow_dict["主力净流入-净占比"][118],
                                 stock_individual_fund_flow_dict["主力净流入-净占比"][119],
                                ]
# 超大单净流入-净额
zijinliuxiang['超大单净流入-净额']=[
                                 stock_individual_fund_flow_dict["超大单净流入-净额"][115],
                                 stock_individual_fund_flow_dict["超大单净流入-净额"][116],
                                 stock_individual_fund_flow_dict["超大单净流入-净额"][117],
                                 stock_individual_fund_flow_dict["超大单净流入-净额"][118],
                                 stock_individual_fund_flow_dict["超大单净流入-净额"][119],
                                ]
# 超大单净流入-净占比
zijinliuxiang['超大单净流入-净占比']=[
                                   stock_individual_fund_flow_dict["超大单净流入-净占比"][115],
                                   stock_individual_fund_flow_dict["超大单净流入-净占比"][116],
                                   stock_individual_fund_flow_dict["超大单净流入-净占比"][117],
                                   stock_individual_fund_flow_dict["超大单净流入-净占比"][118],
                                   stock_individual_fund_flow_dict["超大单净流入-净占比"][119],
                                  ]
# 大单净流入-净额
zijinliuxiang['大单净流入-净额']=[
                               stock_individual_fund_flow_dict["大单净流入-净额"][115],
                               stock_individual_fund_flow_dict["大单净流入-净额"][116],
                               stock_individual_fund_flow_dict["大单净流入-净额"][117],
                               stock_individual_fund_flow_dict["大单净流入-净额"][118],
                               stock_individual_fund_flow_dict["大单净流入-净额"][119],
                              ]
# 大单净流入-净占比
zijinliuxiang['大单净流入-净占比']=[
                               stock_individual_fund_flow_dict["大单净流入-净占比"][115],
                               stock_individual_fund_flow_dict["大单净流入-净占比"][116],
                               stock_individual_fund_flow_dict["大单净流入-净占比"][117],
                               stock_individual_fund_flow_dict["大单净流入-净占比"][118],
                               stock_individual_fund_flow_dict["大单净流入-净占比"][119],
                              ]
# 中单净流入-净额
zijinliuxiang['中单净流入-净额']=[
                               stock_individual_fund_flow_dict["中单净流入-净额"][115],
                               stock_individual_fund_flow_dict["中单净流入-净额"][116],
                               stock_individual_fund_flow_dict["中单净流入-净额"][117],
                               stock_individual_fund_flow_dict["中单净流入-净额"][118],
                               stock_individual_fund_flow_dict["中单净流入-净额"][119],
                              ]
# 中单净流入-净占比
zijinliuxiang['中单净流入-净占比']=[
                                 stock_individual_fund_flow_dict["中单净流入-净占比"][115],
                                 stock_individual_fund_flow_dict["中单净流入-净占比"][116],
                                 stock_individual_fund_flow_dict["中单净流入-净占比"][117],
                                 stock_individual_fund_flow_dict["中单净流入-净占比"][118],
                                 stock_individual_fund_flow_dict["中单净流入-净占比"][119],
                                ]
# 小单净流入-净额
zijinliuxiang['小单净流入-净额']=[
                              stock_individual_fund_flow_dict["小单净流入-净额"][115],
                              stock_individual_fund_flow_dict["小单净流入-净额"][116],
                              stock_individual_fund_flow_dict["小单净流入-净额"][117],
                              stock_individual_fund_flow_dict["小单净流入-净额"][118],
                              stock_individual_fund_flow_dict["小单净流入-净额"][119],
                              ]
#小单净流入-净占比
zijinliuxiang['小单净流入-净占比']=[
                                stock_individual_fund_flow_dict["小单净流入-净占比"][115],
                                stock_individual_fund_flow_dict["小单净流入-净占比"][116],
                                stock_individual_fund_flow_dict["小单净流入-净占比"][117],
                                stock_individual_fund_flow_dict["小单净流入-净占比"][118],
                                stock_individual_fund_flow_dict["小单净流入-净占比"][119],
                                ]

print(zijinliuxiang)
